import { useState } from 'react';

const useCurrentUser = () => {
    const [user] = useState(JSON.parse(localStorage.getItem('user') || '{}'));
    return user;
};

export default useCurrentUser;
